import { request, requestToken,download } from '@/utils/request';
 

export const getDicts = (params) => { return requestToken("post", "/hkfrich-api/system/dictdata/getDicts", params) };
export const listType = (params) => { return requestToken("post", "/hkfrich-api/system/dicttype/list", params) };
export const getType = (params) => { return requestToken("post", "/hkfrich-api/system/dicttype/getOneById", params) };
export const listData = (params) => { return requestToken("post", "/hkfrich-api/system/dictdata/list", params) };
export const optionselect = (params) => { return requestToken("post", "/hkfrich-api/system/dicttype/listAll", params) };
export const delType = (params) => { return requestToken("post", "/hkfrich-api/system/dicttype/removeByIds", params) }; 
export const addType = (params) => { return requestToken("post", "/hkfrich-api/system/dicttype/save", params) };
export const updateType = (params) => { return requestToken("post", "/hkfrich-api/system/dicttype/updateById", params) };
export const refreshCache = (params) => { return requestToken("post", "/hkfrich-api/system/dicttype/refreshCache", params) };
export const addData = (params) => { return requestToken("post", "/hkfrich-api/system/dictdata/save", params) };
export const delData = (params) => { return requestToken("post", "/hkfrich-api/system/dictdata/removeByIds", params) }; 
export const getData = (params) => { return requestToken("post", "/hkfrich-api/system/dictdata/getOneById", params) }; 
export const updateData = (params) => { return requestToken("post", "/hkfrich-api/system/dictdata/updateById", params) }; 